/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.motherfoca.interfaces.usuario;

/**
 *
 * @author langeblanc
 */
public class JFPanelControlAdmin extends javax.swing.JFrame {

    /**
     * Creates new form JFPanelControlAdmin
     */
    public JFPanelControlAdmin() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jBEliminarUsuarios = new javax.swing.JButton();
        jBCrearTema = new javax.swing.JButton();
        jBGestionarPregunta = new javax.swing.JButton();
        jBCrearPregunta = new javax.swing.JButton();
        jBGestionarOpciones = new javax.swing.JButton();
        jBCrearOpciones = new javax.swing.JButton();
        jBGestionarTema = new javax.swing.JButton();
        jBRecoveryPwd = new javax.swing.JButton();
        jBLogoff = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosed(java.awt.event.WindowEvent evt) {
                formWindowClosed(evt);
            }
        });

        jBEliminarUsuarios.setText("<html>Eliminar <br>Usuarios</html>");
        jBEliminarUsuarios.setEnabled(false);
        jBEliminarUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBEliminarUsuariosActionPerformed(evt);
            }
        });

        jBCrearTema.setText("Crear Pregunta");
        jBCrearTema.setEnabled(false);

        jBGestionarPregunta.setText("Actualizar/Eliminar  Pregunta");
        jBGestionarPregunta.setEnabled(false);

        jBCrearPregunta.setText("Crear Tema");
        jBCrearPregunta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBCrearPreguntaActionPerformed(evt);
            }
        });

        jBGestionarOpciones.setText("Actualizar/Eliminar Opciones");
        jBGestionarOpciones.setEnabled(false);
        jBGestionarOpciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGestionarOpcionesActionPerformed(evt);
            }
        });

        jBCrearOpciones.setText("Crear Opciones");
        jBCrearOpciones.setEnabled(false);

        jBGestionarTema.setText("Actualizar/Eliminar Tema");

        jBRecoveryPwd.setText("<html>Recuperar<br>Contrasseña</html>");
        jBRecoveryPwd.setEnabled(false);

        jBLogoff.setText("Logoff");
        jBLogoff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBLogoffActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBCrearOpciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBCrearTema, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBCrearPregunta, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jBGestionarOpciones, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBGestionarPregunta, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBGestionarTema, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(61, 61, 61)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(72, 72, 72)
                        .addComponent(jBLogoff))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jBRecoveryPwd, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(31, 31, 31)
                        .addComponent(jBEliminarUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBCrearPregunta)
                    .addComponent(jBGestionarTema))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBCrearTema)
                    .addComponent(jBGestionarPregunta))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBCrearOpciones)
                    .addComponent(jBGestionarOpciones))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBRecoveryPwd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBEliminarUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addComponent(jBLogoff)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBEliminarUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBEliminarUsuariosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jBEliminarUsuariosActionPerformed

    private void jBLogoffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBLogoffActionPerformed
        JFLogin login = new JFLogin();
        this.dispose();
        login.setVisible(true);
    }//GEN-LAST:event_jBLogoffActionPerformed

    private void jBCrearPreguntaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBCrearPreguntaActionPerformed
        JFTemaAdmin tema = new JFTemaAdmin();
        this.dispose();
        tema.setVisible(true);
    }//GEN-LAST:event_jBCrearPreguntaActionPerformed

    private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
        JFLogin login = new JFLogin();
        this.dispose();
        login.setVisible(true);
    }//GEN-LAST:event_formWindowClosed

    private void jBGestionarOpcionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGestionarOpcionesActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jBGestionarOpcionesActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFPanelControlAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFPanelControlAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFPanelControlAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFPanelControlAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new JFPanelControlAdmin().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBCrearOpciones;
    private javax.swing.JButton jBCrearPregunta;
    private javax.swing.JButton jBCrearTema;
    private javax.swing.JButton jBEliminarUsuarios;
    private javax.swing.JButton jBGestionarOpciones;
    private javax.swing.JButton jBGestionarPregunta;
    private javax.swing.JButton jBGestionarTema;
    private javax.swing.JButton jBLogoff;
    private javax.swing.JButton jBRecoveryPwd;
    // End of variables declaration//GEN-END:variables
}
